package com.hetwen.search.utils;

import cn.android.common.util.StringUtils;

import com.google.gson.Gson;

public class JsonUtils {

	public static <T> Object parse(Class<T> t,String jsonString){
		if(StringUtils.isBlank(jsonString)){
			return null;
		}
		Gson gson = new Gson();
		T fromJson = gson.fromJson(jsonString, t);
		return fromJson;
	}
	
}
